package com.itheima.entry;

import com.itheima.controller.IMangaerController;
import com.itheima.factory.Factory;

import java.util.Scanner;

public class SystemEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("--------欢迎来到黑马信息管理系统--------");
        System.out.println("请输入您的选择: 1.管理者登录  2.管理者注册  3.修改密码  4.退出");
        String choice = sc.next();
        switch (choice){
            case "1":
                IMangaerController managerController = Factory.getManagerController();
                managerController.manLogin();
                break;
            case "2":
                Factory.getManagerController().register();
                break;
            case "3":
                Factory.getManagerController().updatePassword();
                break;
            case "4":
                System.out.println("再见");
                System.exit(0);
                return;
            default:
                System.out.println("您的输入有误，请重新输入");
                break;
        }
    }
}
